import request from '@/utils/request'

// 查询学生社会培训关联列表
export function listTrainings(query) {
  return request({
    url: '/village/applicanttrainings/list',
    method: 'get',
    params: query
  })
}

// 查询学生社会培训关联详细
export function getTrainings(id) {
  return request({
    url: '/village/applicanttrainings/' + id,
    method: 'get'
  })
}

// 新增学生社会培训关联
export function addTrainings(data) {
  return request({
    url: '/village/applicanttrainings',
    method: 'post',
    data: data
  })
}

// 修改学生社会培训关联
export function updateTrainings(data) {
  return request({
    url: '/village/applicanttrainings',
    method: 'put',
    data: data
  })
}

// 删除学生社会培训关联
export function delTrainings(id) {
  return request({
    url: '/village/applicanttrainings/' + id,
    method: 'delete'
  })
}
